$(document).ready(function(){
	var validator = $("#frmAddLeads").validate({
		
		errorElement:'div',
		rules: {
			planid: {
				required: true
			},
			budget: {
				required: true
			},
			jobtypeid: {
				required: true
			},
			regionid: {
				required: true
			},
			/*suburbid: {
				required: true
			},
			postalcode: {
				required: true
			},*/
			price: {
				required: true,
				//character:true,
				maxlength: 10
			}		
		},
		messages: {
			planid: {
				required: "Please Select Membership plan"
			},
			budget: {
				required: "Please Select Budget"
			},
			jobtypeid: {
				required: "Please Select Job Type"
			},
			regionid: {
				required: "Please Select Region"
			},
			/*suburbid: {
				required: "Please Select Suburb"
			},
			postalcode: {
				required: "Please Enter postal code"
			},*/
			price: {
				required: "Please Enter Price",
				//character: "Please enter characters only",
				maxlength: jQuery.format("Enter at most {0} digits")
			}
		}	
		});	
	
});